package request

type CreateReq struct {
	Picture     string  `json:"picture" binding:"required"`
	Name        string  `json:"name" binding:"required"`
	GoodClassId uint    `json:"good_class_id" binding:"required"`
	Incule      string  `json:"incule" binding:"required" `
	Number      int32   `json:"number" binding:"required"`
	Price       float64 `json:"price" binding:"required"`
}

type CreateAttributeReq struct {
	Name   string `json:"name" binding:"required"`
	GoodID uint   `json:"good_id" binding:"required"`
}

type CreateValueReq struct {
	Name        string `json:"name" binding:"required"`
	AttributeId uint   `json:"attribute_id" binding:"required"`
}

type ListReq struct {
	Page   int64  `json:"page" form:"page" `
	Size   int64  `json:"size" form:"size" `
	Name   string `json:"name" form:"name" `
	Number int    `json:"number" form:"number" `
}
